const path = require('path');
const webpackProd = require('./webpack.prod')

module.exports = {
    ...webpackProd,
    mode: 'development',
    devtool:'cheap-module-source-map',
    output: {
        path: path.resolve(__dirname, '../dist'), // 所有打包文件所在的根目录
        clean: true, // 打包时, 先自动清除打包文件夹,
        publicPath:'/'
    },
    devServer: {
        port: 3001,
        open: true
    }
}